#pragma once

#include "GuiUtil.h"

namespace mgui
{
	struct EventArgs
	{

	};

	struct OnOffEventArgs : public EventArgs
	{
		OnOffEventArgs(bool on) { On = on; }
		bool On;
	};

	struct MouseDragEventArgs : public EventArgs
	{
		MouseDragEventArgs(const Point & prevPos, const Point & pos)
		{
			PrevPosition = prevPos;
			Position = pos;
			MoveVector.x = (float)pos.X - (float)prevPos.X;
			MoveVector.y = (float)pos.Y - (float)prevPos.Y;
		}
		Point PrevPosition;
		Point Position;
		XMFLOAT2 MoveVector;
	};
}